package cn.nbs.user.service;

import cn.nbs.user.dao.UserDao;
import cn.nbs.user.entity.User;

public class UserService {
	private UserDao dao = new UserDao();
	
	
	public User login(User user){
		User  u = dao.findByLoginnameAndPassword(user.getLoginname(),user.getLoginpass());
		return u;
	}
	
	
	
}
